package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-25
 * Description: 商户信息
 */
@Data
@Accessors(chain = true)
public class Shop implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JSONField(name = "ID")
    private Long id;

    /**
     * 商铺名称
     */
    @JSONField(name = "NAME")
    private String name;

    /**
     * 商铺类型的id
     */
    @JSONField(name = "TYPE_ID")
    private Long typeId;

    /**
     * 商铺图片，多个图片以','隔开
     */
    @JSONField(name = "IMAGES")
    private String images;

    /**
     * 商圈，例如陆家嘴
     */
    @JSONField(name = "AREA")
    private String area;

    /**
     * 地址
     */
    @JSONField(name = "ADDRESS")
    private String address;

    /**
     * 经度
     */
    @JSONField(name = "X")
    private Double x;

    /**
     * 维度
     */
    @JSONField(name = "Y")
    private Double y;

    /**
     * 均价，取整数
     */
    @JSONField(name = "AVG_PRICE")
    private Long avgPrice;

    /**
     * 销量
     */
    @JSONField(name = "SOLD")
    private Integer sold;

    /**
     * 评论数量
     */
    @JSONField(name = "COMMENTS")
    private Integer comments;

    /**
     * 评分，1~5分，乘10保存，避免小数
     */
    @JSONField(name = "SCORE")
    private Integer score;

    /**
     * 营业时间，例如 10:00-22:00
     */
    @JSONField(name = "OPEN_HOURS")
    private String openHours;

    /**
     * 创建时间
     */
    @JSONField(name = "CREATE_TIME")
    private Timestamp createTime;

    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private Timestamp updateTime;

    /**
     * 距离
     */
    @JSONField(name = "DISTANCE")
    private Double distance;
}
